var express = require('express');
var router = express.Router();
const {add ,find ,remove,set} = require("../service/shopManageService.js")

 // 新增
router.post('/add', async function (req, res, next) {
   let data = await add(req.body);
   res.send(data);
});

//       门店查询
router.post("/find",async function(req,res , next){
   let data = await find(req.body);
   res.send(data);
});

//       删除
router.post("/remove",async function(req,res,next){
   let data = await remove(req.body);
   res.send(data);
});

//       修改
router.post("/set",async (req,res,next)=>{
   var data = await set(req.body);
   res.send(data);
})


module.exports = router;